<?php
namespace app\admin\model;
use app\admin\BaseModel;
use think\Model;

class Admin extends  BaseModel
{
    public static function getUserList()
    {
        $list=self::field(true)->paginate([
            'list_rows'=>5,//每页数量
            'query'=>request()->param()
        ]);
        $page = $list->render();
        return [$list,$page];
    }

    public static function updateUser($data)
    {
        $update=self::update($data);
        return $update;
    }
    public static function AddUser($data)
    {
        $add=self::create($data);

        return $add;
    }
}